package com.baosight.risk.api.system;


import com.baosight.risk.base.service.BaseService;
import com.baosight.risk.service.system.entity.SysRole;
import com.baosight.risk.service.system.vo.SysRoleVO;

import java.util.List;
import java.util.Set;

/**
 * @author duanyongqiang
 * @date 2019.3.22
 */
public interface ISysRoleService extends BaseService<SysRole> {

    Integer insertRole(List<SysRole> roleList) throws Exception;

    Set<String> selectRoleKeys(String id);

    List<SysRole> selectRole(SysRole role);

    Integer authorization(SysRoleVO roleVO);

    Integer updateRole(SysRole role);

    List<SysRole> selectRoleByIds(List<String> ids);

    Integer delelteRoleByIds(List<String> ids, String status);
}